package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserBadge;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserBadgeBussiness {

    public static Map<Integer, List<UserBadge>> getUserBadgeMap(long userId) {
        return DaoHelper.getUserBadgeDaoImpl().getUserBadgeMap(userId);
    }

    public static List<UserBadge> getUserBadgeList(long userId, int badgeType) {
        return DaoHelper.getUserBadgeDaoImpl().getUserBadgeList(userId, badgeType);
    }

    public static Map<Long, List<UserBadge>> getAllUserBadgeMap() {
        return DaoHelper.getUserBadgeDaoImpl().getAllUserBadgeMap();
    }

    public static boolean addUserBadge(UserBadge userBadge) {
        return DaoHelper.getUserBadgeDaoImpl().add(userBadge);
    }

    public static boolean updateUserBadge(UserBadge userBadge) {
        return DaoHelper.getUserBadgeDaoImpl().update(userBadge);
    }

}
